package lg.minecraft.plugin.pokedex.listener;

import lg.minecraft.plugin.pokedex.LGPokedex;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;

/**
 * @author langle__
 * @version 1.0
 */
public class PlayerEvent implements Listener {

    @EventHandler(priority = EventPriority.MONITOR)
    public void onPlayerQuit(PlayerQuitEvent event) {
        Player player = event.getPlayer();

        LGPokedex.getPokedexPlayerManger().removePokedexPlayer(player.getUniqueId());
    }

}
